Skip to content

feat(pm-console): every Android build GitHub makes is signed and released, where the key is - #12940

Merged
dezren39 merged 1 commit into
mainfrom
claude/pm-android-signed-release
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/pm-android-signed-release

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

GitHub Actions builds the Android app on every change, but does not hold the signing key, so its build was unsigned and nothing was ever released: the release waited for someone to put the key into GitHub by hand. The key is on the pm-stack host and stays there, so the signing now happens there, by itself.

What changes

  • android/release-built.sh (new), run every ten minutes by pm-console-android-release.timer: takes the newest unsigned build this repository made on main, signs it on the host (sign.sh, which refuses a result that does not carry the certificate the site lists), releases it (release.sh: the numbered release and the fixed address), and puts it where the console serves the app from. When the newest build is already released it asks GitHub one question and does nothing.
  • The key is read by apksigner on the host and goes nowhere. What leaves is the signed APK, which is public.
  • Only this repository's own finished build on main, made by a push or by hand, is ever signed: never a pull request, another branch, a fork or another repository's run, whatever it is called.
  • A failure (wrong certificate, GitHub not answering, the release not made) leaves the release, the served app and the record as they were; the next run tries again. The unit shows on the Services screen and in notifications like any other.
  • The workflow's artifact now carries the version the build was made as.
  • install.sh installs the timer and redeploy.sh watches its units, so the host picks this up from the merge with nobody at it.
  • If GitHub's environment is ever given the key, the workflow signs and releases by itself as before, and the host finds nothing to do.

Checked

  • release-built.test.sh (added to the scheduled pm-stack tests) runs the real release-built.sh, sign.sh and release.sh against stand-ins for gh, fleet and apksigner: twelve situations. It found one fault before this was committed: with plain gh, the wrapper called itself for ever.
  • Fifteen planted faults (a fork's build signed, a failed run's build signed, any certificate accepted, a build recorded as released when it was not, two runs at once, and ten more), each caught. The commit message says seventeen; fifteen is the count.
  • release.test.sh still passes; bun test 193 pass; shfmt, shellcheck, actionlint and the CI policy check are clean.

Not checked here

The timer on the host itself, and apksigner's own signing. Both are checked by what this produces: once the host has released a build, I verify the published APK against signing-fingerprint.txt with apksigner from outside.


Generated by Claude Code


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ased, where the key is

GitHub Actions builds the app on every change, but does not hold the
signing key, so its build was unsigned and nothing was released: the
release waited for someone to put the key into GitHub by hand. The key
is on the pm-stack host and stays there, so the signing now happens
there, by itself.

- android/release-built.sh (new), run every ten minutes by
  pm-console-android-release.timer: takes the newest unsigned build this
  repository made on main, signs it on the host (sign.sh, which refuses
  a result that does not carry the certificate the site lists), releases
  it (release.sh: the numbered release and the fixed address), and puts
  it where the console serves the app from. When the newest build is
  already released it asks GitHub one question and does nothing. The key
  is read by apksigner there and goes nowhere; what leaves is the signed
  APK, which is public.
- Only this repository's own finished build on main, made by a push or
  by hand, is ever signed: never a pull request, another branch, a fork
  or another repository's run, whatever it is called.
- A failure (wrong certificate, GitHub not answering, the release not
  made) leaves the release, the served app and the record as they were,
  and the next run tries again. The unit shows on the Services screen
  and in notifications like any other.
- The workflow's artifact now carries the version the build was made as,
  so whoever signs it releases it under that version.
- install.sh installs the timer and redeploy.sh watches its units, so
  the host picks all of this up from the merge with nobody at it.
- release.sh can be told how gh is run (fleet gh on the host), and says
  in the release where the build was signed.
- If GitHub's environment is given the key, the workflow signs and
  releases by itself as before, and the host finds nothing to do.

The test (release-built.test.sh, in the scheduled pm-stack tests) runs
the real three scripts against stand-ins for gh, fleet and apksigner.
It found one fault before this was committed: with plain gh, the
wrapper called itself for ever. Seventeen planted faults are each
caught.

Not checked here: the timer on the host itself, and apksigner's own
signing. Both are checked by the release it makes: the APK it publishes
is verified against signing-fingerprint.txt with apksigner from here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 05:29
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3401c5e8-818f-4274-9b94-0f0ea1f8cfbe
Commits

Reviewing files that changed from the base of the PR and between 8a629fc and 5c7ed42.

Files selected for processing: 13

  • .github/workflows/pm-console-android.yml
  • .github/workflows/pm-stack-tests.yml
  • doc/fleet-schedule-registry.md
  • pm-stack/console/README.md
  • pm-stack/console/android/README.md
  • pm-stack/console/android/release-built.sh
  • pm-stack/console/android/release-built.test.sh
  • pm-stack/console/android/release.sh
  • pm-stack/console/install.sh
  • pm-stack/console/redeploy.sh
  • pm-stack/console/test/redeploy.test.ts
  • pm-stack/systemd/pm-console-android-release.service
  • pm-stack/systemd/pm-console-android-release.timer
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:30:31.217630Z 5c7ed42 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 0f311ae into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/pm-android-signed-release branch November 23, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants